package com.tansun.easycare.rule.datasource.entity;

import org.hibernate.validator.constraints.Length;

import com.tansun.easycare.core.persistence.DataEntity;

/**
 * 入口参数Entity
 * @author WYH
 * @version 2018-06-14
 */
public class RuleDatasheet extends DataEntity<RuleDatasheet> {
	
	private static final long serialVersionUID = 1L;
	private String projectCode;		// 规则项目
	private String enterCode;		// 入口点
	private String name;		// 表名称
	private String comments;		// 表注释
	private String datasourceId;		// 数据源ID
	
	public RuleDatasheet() {
		super();
	}

	public RuleDatasheet(String id){
		super(id);
	}

	@Length(min=0, max=2000, message="规则项目长度必须介于 0 和 2000 之间")
	public String getProjectCode() {
		return projectCode;
	}

	public void setProjectCode(String projectCode) {
		this.projectCode = projectCode;
	}
	
	@Length(min=0, max=2000, message="入口点长度必须介于 0 和 2000 之间")
	public String getEnterCode() {
		return enterCode;
	}

	public void setEnterCode(String enterCode) {
		this.enterCode = enterCode;
	}
	
	@Length(min=0, max=200, message="表名称长度必须介于 0 和 200 之间")
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	
	@Length(min=0, max=2000, message="表注释长度必须介于 0 和 2000 之间")
	public String getComments() {
		return comments;
	}

	public void setComments(String comments) {
		this.comments = comments;
	}
	
	@Length(min=0, max=64, message="数据源ID长度必须介于 0 和 64 之间")
	public String getDatasourceId() {
		return datasourceId;
	}

	public void setDatasourceId(String datasourceId) {
		this.datasourceId = datasourceId;
	}
	
}